﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SPlayerChallengeInfos extends IMessageBase
    {
        public var mop:Boolean;
        public var residuettimes:int;
        public var challengeCopyInfo:Dictionary;
        public const _type:int = 5008;
        public static var _regist:SPlayerChallengeInfos = new SPlayerChallengeInfos(true);

        public function SPlayerChallengeInfos(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SPlayerChallengeInfos();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.mop);
            param1.writeInt(this.residuettimes);
            DicChallengeCopyInfoHelper.write(param1, this.challengeCopyInfo);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.mop = param1.readBool();
            this.residuettimes = param1.readInt();
            this.challengeCopyInfo = DicChallengeCopyInfoHelper.read(param1);
            return;
        }// end function

    }
}
